package csu.web.mypetstore.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName cart
 */
@TableName(value ="cart")
@Data
public class DB_Cart implements Serializable {
    /**
     * 
     */
    private String itemId;

    /**
     * 
     */
    private String productId;

    /**
     * 
     */
    private String description;

    /**
     * 
     */
    private Integer inStock;

    /**
     * 
     */
    private Integer quanitity;

    /**
     * 
     */
    private Double listPrice;

    /**
     * 
     */
    private Double totalCost;
    private String userid;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public String getItemId() {
        return itemId;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getInStock() {
        return inStock;
    }

    public void setInStock(Integer inStock) {
        this.inStock = inStock;
    }

    public Integer getQuanitity() {
        return quanitity;
    }

    public void setQuanitity(Integer quanitity) {
        this.quanitity = quanitity;
    }

    public Double getListPrice() {
        return listPrice;
    }

    public void setListPrice(Double listPrice) {
        this.listPrice = listPrice;
    }

    public Double getTotalCost() {
        return totalCost;
    }

    public void setTotalCost(Double totalCost) {
        this.totalCost = totalCost;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", itemId=").append(itemId);
        sb.append(", productId=").append(productId);
        sb.append(", description=").append(description);
        sb.append(", inStock=").append(inStock);
        sb.append(", quanitity=").append(quanitity);
        sb.append(", listPrice=").append(listPrice);
        sb.append(", totalCost=").append(totalCost);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}